home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GNUGEM27 / AESCRAP.C < prev    next >
C/C++ Source or Header  |  1993-03-24  |  1KB  |  59 lines

  1. /*
  2.  *    Aes scrap interface
  3.  *
  4.  *        scrp_read    read the directory path for scrap dir
  5.  *        scrp_write    define access path for scrap dir
  6.  *        scrp_clear    remove all files in scrap dir
  7.  *
  8.  *            ++fgth    ridderbusch.pad@nixdorf.com
  9.  */
  10. #include "common.h"
  11.  
  12. #ifdef __DEF_ALL__
  13.  
  14. #define L_scrp_rea
  15. #define L_scrp_wri
  16. #define L_scrp_cle
  17.  
  18. #endif /* __DEF_ALL__ */
  19.  
  20.  
  21. #ifdef L_scrp_rea
  22.  
  23. /* read the path for the scrap directory
  24.  *    returns 0 on error    >0 no error
  25.  */
  26. int scrp_read(char *Scrappath)
  27. {
  28.     _addrin[0] = Scrappath;
  29.     return __aes__(AES_CONTROL_ENCODE(80, 0, 1, 1));
  30. }
  31. #endif /* L_scrp_rea */
  32.  
  33. #ifdef L_scrp_wri
  34.  
  35. /* define the path for the scrap directory
  36.  *    returns 0 on error    >0 no error
  37.  */
  38. int scrp_write(char *Scrappath)
  39. {
  40.     _addrin[0] = Scrappath;
  41.     return __aes__(AES_CONTROL_ENCODE(81, 0, 1, 1));
  42. }
  43. #endif /* L_scrp_wri */
  44.  
  45. #if 0
  46. /* not present in GEM < V2 */
  47.  
  48. #ifdef L_scrp_cle
  49.  
  50. /* clear all files in the scrap directory
  51.  *    returns 0 on error    >0 no error
  52.  */
  53. int scrp_clear(void)
  54. {
  55.     return __aes__(AES_CONTROL_ENCODE(82, 0, 1, 0));
  56. }
  57. #endif /* L_scrp_cle */
  58. #endif
  59.